import layoutHeaderAside from '@/layout/header-aside'

const meta = { requiresAuth: true }

export default {
  path: '/customer',
  name: 'customer',
  meta,
  redirect: { name: 'customer-person-index' },
  component: layoutHeaderAside,
  children: (pre => [
    {
      path: 'infolist',
      name: `${pre}infolist`,
      component: () => import('@/pages/demo/customer/info_list'),
      meta: { meta, title: '客户信息' }
    },
    { path: `infolist/detail`,
      name: `${pre}infolist-detail`,
      component: () => import('@/pages/demo/customer/index'),
      meta: { meta, title: '客户信息录入' }
    }
  ])('customer-')
}
